public class test {
	public static int func(int n)
	{
		int res=0;
		while(n>0)
		{
			res+=n%10;
			n/=10;
		}
		return res;
	}

	public static void main(String[] args) {

		System.out.println(func(136));
	}
}
